package com.chushouya.manager.dto.admin.finance;

import com.chushouya.manager.constants.AccountUserTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("门店资金账户")
public class FinanceAccountApiDTO {

    @ApiModelProperty("资金账户ID")
    private Long accountId;

    @ApiModelProperty("钱包余额")
    private BigDecimal walletBalance;


    private Integer accountUserType;


    private String accountUserTypeText;

    /**
     * 账户用户ID(回收商ID或门店ID)
     */
    private Long accountUserId;

    /**
     * 账户用户名
     */
    private String accountUserName;


    /**
     * 账户描述
     */
    private String accountRemark;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 加盟商钱包Id
     */
    private String userWalletId;

    private Date createTime;

    public String getAccountUserTypeText() {
        return AccountUserTypeEnum.getDesc(this.accountUserType);
    }

}
